﻿using JetBrains.Annotations;

using Orchard.Core.Common.Models;
using Orchard.Data;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Handlers;

using FruitCake.ContactPage.Models;
using Orchard.Environment.Extensions;

namespace FruitCake.ContactPage.Handlers
{
    [OrchardFeature("FruitCake.ContactPage")]
	public class ContactPageHandler : ContentHandler
	{
        public ContactPageHandler(IRepository<ContactPagePartRecord> repository)
		{			
			Filters.Add(StorageFilter.For(repository));			
		}
	}
}